<template>
  <div class="join">
    <screen-brand :screen-brand-msg="allBrand" />
    <div class="joinCon">
      <section>
        <ul>
          <li>
            <div class="conLeft">
              <div class="imgBox">
                <img src="../../../assets/img/join/logo1.png">
              </div>
              <div class="conIntroduce">
                <p>Supreme</p>
                <p>上海Supreme有限公司</p>
                <div class="supportBox">
                  <span><i class="iconfont iconmerchants_icon_dui" />选址支持</span>
                  <span><i class="iconfont iconmerchants_icon_dui" />管理支持</span>
                  <span><i class="iconfont iconmerchants_icon_dui" />其他支持</span>
                  <span><i class="iconfont iconmerchants_icon_dui" />其他支持</span>
                  <span><i class="iconfont iconmerchants_icon_dui" />其他支持</span>
                </div>
              </div>
            </div>

            <div class="conRight">
              <div>
                投资金额
                <span>20-30万</span>
              </div>
              <button>
                <i class="iconfont iconmerchants_icon_shafa" />
                我要加盟
              </button>
            </div>
          </li>
          <li>
            <div class="conLeft">
              <div class="imgBox">
                <img src="../../../assets/img/join/logo1.png">
              </div>
              <div class="conIntroduce">
                <p>Supreme</p>
                <p>上海Supreme有限公司</p>
                <div class="supportBox">
                  <span><i class="iconfont iconmerchants_icon_dui" />选址支持</span>
                  <span><i class="iconfont iconmerchants_icon_dui" />管理支持</span>
                  <span><i class="iconfont iconmerchants_icon_dui" />其他支持</span>
                </div>
              </div>
            </div>

            <div class="conRight">
              <div>
                投资金额
                <span>20-30万</span>
              </div>
              <button>
                <i class="iconfont iconmerchants_icon_shafa" />
                我要加盟
              </button>
            </div>
          </li>
          <li>
            <div class="conLeft">
              <div class="imgBox">
                <img src="../../../assets/img/join/logo1.png">
              </div>
              <div class="conIntroduce">
                <p>Supreme</p>
                <p>上海Supreme有限公司</p>
                <div class="supportBox">
                  <span><i class="iconfont iconmerchants_icon_dui" />选址支持</span>
                  <span><i class="iconfont iconmerchants_icon_dui" />管理支持</span>
                  <span><i class="iconfont iconmerchants_icon_dui" />其他支持</span>
                </div>
              </div>
            </div>

            <div class="conRight">
              <div>
                投资金额
                <span>20-30万</span>
              </div>
              <button>
                <i class="iconfont iconmerchants_icon_shafa" />
                我要加盟
              </button>
            </div>
          </li>
        </ul>
        <div class="ceSelfPages">
          <el-pagination
            :current-page.sync="currentPage"
            :page-size="100"
            background
            layout="prev, pager, next, jumper"
            :total="1000"
            @size-change="handleSizeChange"
            @current-change="handleCurrentChange"
          />
        </div>
      </section>
      <aside>
        <dl>
          <dt>
            <span>热门加盟&nbsp;/&nbsp;</span>
            <span>POPULAR JOINING</span>
          </dt>
          <dd>
            <div class="imgBox">
              <img src="../../../assets/img/join/logo2.png">
            </div>
            <div class="asideCon">
              <p>Dickies</p>
              <div>
                <span>投资金额：</span>
                <span>5万-10万</span>
              </div>
            </div>
          </dd>
        </dl>
      </aside>
    </div>

    <recommends :recommends="tjMsg" />

    <img src="../../../assets/img/join/gg.png" class="advertising">
  </div>
</template>

<script>
import screenBrand from '../../../components/template-item1/screenBrand'
import recommends from '../../../components//template-item1/recommends'
export default {
  components: { screenBrand, recommends },
  data() {
    return {
      allBrand: {
        citys: {
          tit: '按品牌所在地：',
          data: ['国际', '北京', '天津', '石家庄', '国际', '美国', '国际', '国际', '国际', '国际', '国际', '国际', '国际', '国际', '国际', '国际', '国际', '国际', '国际', '国际', '国际', '国际', '国际']
        },
        pinyin: {
          tit: '安投资金额：',
          data: ['全部', '1-2万', '2-3万', '5-8万', '10万以上', '面议'],
          style: {
            width: 'auto',
            marginRight: '30px'
          }
        }
      },
      tjMsg: {
        tit: '加盟推荐',
        moreMsg: '查看更多',
        data: [
          {
            img: require('../../../assets/img/join/logo2.png'),
            name: '迪士尼',
            describe: '专业制造100年',
            iDo: '我要加盟'
          },
          {
            img: require('../../../assets/img/join/logo2.png'),
            name: '哈士奇',
            describe: '专业制造100年',
            iDo: '我要加盟'
          },
          {
            img: require('../../../assets/img/join/logo2.png'),
            name: '万达地产',
            describe: '专业制造100年',
            iDo: '我要加盟'
          }
        ]
      },
      currentPage: 5

    }
  },
  methods: {
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`)
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`)
    }
  }

}
</script>

<style lang="scss" scoped>
.join{
  width: 1200px;
  margin: 0 auto;
  >.joinCon{
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    >section{
      width: 850px;
      //height: 1966px;
      background-color: #fff;
      padding: 6px 30px 0;
      >ul{
        >li{
          height: 185px;
          width: 100%;
          display: flex;
          flex-flow: row nowrap;
          justify-content: space-between;
          align-items: center;
          border-bottom: 1px dotted #DBDBDB;
          cursor: pointer;
          >.conLeft{
            display: flex;
            flex-flow: row nowrap;
            justify-content: flex-start;
            align-items: center;
            >.imgBox{
              width: 215px;
              height: 121px;
              box-shadow:0px 0px 2px rgba(40,48,77,0.2);
              display: flex;
              flex-flow: row nowrap;
              justify-content: center;
              align-items: center;
              >img{
                display: block;
                max-width: 172px;
                max-height: 96px;
              }
            }
            >.conIntroduce{
              margin-left: 25px;
              >p:first-child{
                font-size: 24px;
                color: #333;
                margin-bottom: 12px;
                font-weight: bold;
              }
              >p:nth-child(2){
                font-size: 16px;
                color: #666;
                margin-bottom: 25px;
              }
              >.supportBox{
                width: 376px;
                display: flex;
                flex-flow: row wrap;
                justify-content: flex-start;
                align-items: center;
                >span{
                  margin-right: 14px;
                  color: #666;
                  margin-bottom: 10px;
                  font-size: 14px;
                  >i{
                    font-size: 15px;
                    margin-right: 3px;
                    color: #5387F0;
                  }
                }
                >span:nth-child(4n){
                  margin-right: 0;
                }
              }
            }
          }
          >.conRight{
            height: 123px;
            display: flex;
            flex-flow: column nowrap;
            justify-content: space-between;
            align-items: flex-end;
            >div{
              font-size: 16px;
              color: #666;
              >span{
                font-size: 20px;
                color: #D6000F;
              }
            }
            >button{
              width: 115px;
              height: 40px;
              color: #417AEF;
              border: 1px solid #417AEF;
              border-radius: 4px;
              font-size: 14px;
              background-color: #fff;
              cursor: pointer;
              >i{
                margin-right: 8px;
              }
            }
          }

        }
        >li:hover{
          >.conLeft{
            >.conIntroduce{
              >p:first-child{
                color: #417AEF;
              }
            }
          }
          >.conRight{
            >button{
              background-color: #417AEF;
              color: #fff;
            }
          }
        }
      }
      >.ceSelfPages{
        height: 120px;
        line-height: 120px;
        padding-top: 30px;
        padding-bottom: 70px;
        >.el-pagination{
          text-align: center;
          >.el-pager {
            >li{
              font-size: 14px;
            }
            .el-pagination.is-background .el-pager li{
              background-color: #fff;
            }
          }
          >.el-pagination__jump{
            padding-top: 3px;
          }
        }
      }
    }
    >aside{
      box-sizing: border-box;
      width: 330px;
      //height: 847px;
      background-color: #fff;
      padding: 6px 20px 0;
      >dl{
        width: 100%;
        >dt{
          height: 52px;
          width: 100%;
          border-bottom: 1px solid #DBDBDB;
          padding-top: 16px;
          >span:first-child{
            font-size: 18px;
            color: #333;
          }
          >span:last-child{
            font-size: 14px;
            color: #999;
          }
        }
        dd{
          width: 100%;
          height: 93px;
          display: flex;
          flex-flow: row nowrap;
          justify-content: flex-start;
          align-items: center;
          border-bottom: 1px dotted #DBDBDB;
          cursor: pointer;
          >.imgBox{
            width: 122px;
            height: 69px;
            display: flex;
            flex-flow: row nowrap;
            justify-content: center;
            align-items: center;
            box-shadow:0px 0px 1px rgba(40,48,77,0.3);
            margin-right: 12px;
            >img{
              display: block;
              max-width: 71px;
              max-height: 40px;
            }
          }
          >.asideCon{
            >p{
              font-size: 18px;
              color: #333;
              margin-bottom: 20px;
            }
            >div{
              font-size: 14px;
              >span:first-child{
                color: #666;
              }
              >span:last-child{
                color: #D6000F;
              }
            }
          }
        }
      }
    }
  }
  >.advertising{
    margin-bottom: 70px;
  }

}
</style>
